#ifndef RELATIONGRAPHICSLINE_H
#define RELATIONGRAPHICSLINE_H

#include <QGraphicsLineItem>
#include <QDebug>
#include <QPen>
#include <QPainter>
#include <QGraphicsSceneContextMenuEvent>

class RelationGraphicsLine : public QObject, public QGraphicsLineItem
{
    Q_OBJECT
public:
    RelationGraphicsLine(QGraphicsItem *parent = 0);

    void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
    void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
    void hoverMoveEvent(QGraphicsSceneHoverEvent *event);

    void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);

    void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);

signals:
    void relationHoverEnter(QGraphicsSceneHoverEvent *event);
    void relationHoverLeave(QGraphicsSceneHoverEvent *event);
    void relationHoverMove(QGraphicsSceneHoverEvent *event);

    void relationMouseDoubleClick(QGraphicsSceneMouseEvent *event);

};

#endif // RELATIONGRAPHICSLINE_H
